package com.ag.bean;

import java.util.HashSet;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

/**
 * TbGoodsstatus entity.
 * 
 * @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "TB_GOODSSTATUS", schema = "dbo", catalog = "AGDB")
public class TbGoodsstatus implements java.io.Serializable {

	// Fields

	private String gstatusId;
	private String gstatusName;
	private String a;
	private String b;
	private String c;
	private Set<TbAidgoogs> tbAidgoogses = new HashSet<TbAidgoogs>(0);

	// Constructors

	/** default constructor */
	public TbGoodsstatus() {
	}

	/** minimal constructor */
	public TbGoodsstatus(String gstatusId, String gstatusName) {
		this.gstatusId = gstatusId;
		this.gstatusName = gstatusName;
	}

	/** full constructor */
	public TbGoodsstatus(String gstatusId, String gstatusName, String a,
			String b, String c, Set<TbAidgoogs> tbAidgoogses) {
		this.gstatusId = gstatusId;
		this.gstatusName = gstatusName;
		this.a = a;
		this.b = b;
		this.c = c;
		this.tbAidgoogses = tbAidgoogses;
	}

	// Property accessors
	@Id
	@Column(name = "GSTATUS_ID", unique = true, nullable = false, length = 4)
	public String getGstatusId() {
		return this.gstatusId;
	}

	public void setGstatusId(String gstatusId) {
		this.gstatusId = gstatusId;
	}

	@Column(name = "GSTATUS_NAME", nullable = false, length = 50)
	public String getGstatusName() {
		return this.gstatusName;
	}

	public void setGstatusName(String gstatusName) {
		this.gstatusName = gstatusName;
	}

	@Column(name = "A", length = 50)
	public String getA() {
		return this.a;
	}

	public void setA(String a) {
		this.a = a;
	}

	@Column(name = "B", length = 50)
	public String getB() {
		return this.b;
	}

	public void setB(String b) {
		this.b = b;
	}

	@Column(name = "C", length = 50)
	public String getC() {
		return this.c;
	}

	public void setC(String c) {
		this.c = c;
	}

	@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "tbGoodsstatus")
	public Set<TbAidgoogs> getTbAidgoogses() {
		return this.tbAidgoogses;
	}

	public void setTbAidgoogses(Set<TbAidgoogs> tbAidgoogses) {
		this.tbAidgoogses = tbAidgoogses;
	}

}